package com.gxa.service.impl;

import com.gxa.entity.Campus;
import com.gxa.entity.Doctor;
import com.gxa.entity.DoctorLabel;
import com.gxa.mapper.DoctorMapper;
import com.gxa.service.DoctorService;
import com.gxa.vo.DepCampusVo;
import com.gxa.vo.DoctorVo;
import com.gxa.vo.DoctorVo1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl implements DoctorService {

    @Autowired
    private DoctorMapper doctorMapper;

    @Override
    public List<DoctorVo1> queryAll() {
        return this.doctorMapper.queryAll();
    }

    @Override
    public List<String> query1() {
        return this.doctorMapper.query1();
    }

    @Override
    public List<DoctorVo1> queryByName(DoctorVo1 doctorVo1) {
        return this.doctorMapper.queryByName(doctorVo1);
    }

    @Override
    public List<DoctorVo> queryById(int id) {
        return this.doctorMapper.queryById(id);
    }

    @Override
    public Integer queryId(DoctorVo1 doctorVo1) {
        return this.doctorMapper.queryId(doctorVo1);
    }

    @Override
    public void updateDoctor(DoctorVo1 doctor) {
        this.doctorMapper.updateDoctor(doctor);
    }

    @Override
    public List<Campus> queryCampus() {
        return this.doctorMapper.queryCampus();
    }

    @Override
    public Integer queryDepartmentId(String department) {
        return this.doctorMapper.queryDepartmentId(department);
    }

    @Override
    public Integer queryLabelId(String label) {
        return this.doctorMapper.queryLabelId(label);
    }

    @Override
    public Integer queryId1(DoctorVo1 doctorVo) {
        return this.doctorMapper.queryId1(doctorVo);
    }

    @Override
    public void updateDoctorLabel(DoctorLabel doctorLabel) {
        this.doctorMapper.updateDoctorLabel(doctorLabel);
    }

    @Override
    public Integer queryDLId(DoctorLabel doctorLabel) {
        return this.doctorMapper.queryDLId(doctorLabel);
    }

    @Override
    public List<String> queryProf() {
        return this.doctorMapper.queryProf();
    }

    @Override
    public List<String> queryLabel() {
        return this.doctorMapper.queryLabel();
    }

    @Override
    public void insertDoctor(DoctorVo1 doctor) {
        this.doctorMapper.insertDoctor(doctor);
    }

    @Override
    public void insertDoctorLabel(DoctorLabel doctorLabel) {
        this.doctorMapper.insertDoctorLabel(doctorLabel);
    }

    @Override
    public void DelDoctor(int id) {
        this.doctorMapper.DelDoctor(id);
    }

    @Override
    public void DeleteDoctorLabel(int id) {
        this.doctorMapper.DeleteDoctorLabel(id);
    }

    @Override
    public List<String> queryLabelById(int id) {
        return this.doctorMapper.queryLabelById(id);
    }

    @Override
    public List<Integer> queryDocIdByDepId(Integer id) {
        return this.doctorMapper.queryDocIdByDepId(id);
    }

    @Override
    public List<DepCampusVo> query2() {
        return this.doctorMapper.query2();
    }
}
